<template>
  <h2>Child...</h2>
  <button @click="$emit('click', 3)">update</button>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "Child",
  emits: ["click"],
});
</script>

